package com.shenhua.pdfboxctl.service;

import com.shenhua.pdfboxctl.basement.BaseTools;
import com.shenhua.pdfboxctl.model.RectPos;
import com.shenhua.pdfboxctl.pdfBoxCtl.CatalogMethod;
import com.shenhua.pdfboxctl.pdfBoxCtl.KeyLocation;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.security.Key;

@Service
public class PdfService {

    public Integer getKeyLocation(MultipartFile multipartFile,String catalog_keylogs){
        File file = BaseTools.MultipartFileToFile(multipartFile);
        CatalogMethod catalogMethod = new CatalogMethod();
        return catalogMethod.whereIsCatalog(file, catalog_keylogs);
    }


}
